- XYZ
a numeric Nx3 matrix with CIE XYZ coordinates in the rows, or a vector that can be converted to such a matrix, by row.
The XYZ are assumed to be viewed under the white-point of the given RGB space.
- RGB
a numeric Nx3 matrix with linear RGB coordinates in the rows,
or a vector that can be converted to such a matrix, by row.
The RGB may be outside the corresponding domain box (either scene or display), see Details.
- space
the name of an installed RGB space.
The name matching is partial and case-insensitive.
- which
the input linear RGB - either 'scene' or 'display'.
- TF
if not NULL, TF is a TransferFunction
that overrides the appropriate transfer function of space.
TF can also be a positive number.
If TF=1, then TF is set to identity.TF,
so the returned RGB values are actually linear, and they are not clamped to the appropriate domain box
(see Value).
If TF!=1 it is used to create either
power.EOTF() or power.OETF() as approriate.
If TF is not NULL in SignalRGBfromLinearRGB(), then space is ignored.
- maxSignal
maximum value of non-linear RGB.
Other common values are 100, 255, 1023, 4095, and 65535.
Even when 1, they are still taken to be non-linear Signal values.